<?php
/**
 * Created by PhpStorm.
 * User: fengtian
 * Date: 15-4-1
 * Time: 下午5:48
 */
?>
<script type="application/javascript">
    $(function () {
        $("#rem").ready(function () {
            $("#rem").ajaxForm(function (re) {
                window.location.reload();
            });
        });

    })
</script>
<form action="<?php echo URL::base() ?>checkstock/add_active_detail" method="post" id="rem">
    <div class="control-group">
        <label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;平台:</label>
        <select name="stage">
            <option value="1">ebay</option>
            <option value="2">smt</option>
            <option value="3">amz</option>
            <option value="4">wish</option>
        </select>
    </div>
    <div class="control-group">
        <label> 开始时间:</label>
        <input type="text" name="begin" class="date" value="<?php echo date('Y-m-d H:i:s'); ?>"
               readonly="readonly">
    </div>
    <div class="control-group">
        <label>结束时间:</label>
        <input type="text" name="end" class="date" value="<?php echo date('Y-m-d H:i:s'); ?>"
               readonly="readonly">
    </div>

    <div style="text-align: center">
        <input type="submit" value="添加" class="btn btn-info">
    </div>
</form>

<script>
    $(function () {
        $(".date").datetimepicker({
            dateFormat: 'yy-mm-dd',
            timeFormat: 'HH:mm:ss'
        });
    });
</script>